package org.fnzn.service;

import org.fnzn.bean.FnglStaff;
import org.fnzn.bean.vo.User;
import org.fnzn.core.Page;
import org.fnzn.core.Result;
import tk.mybatis.mapper.entity.Condition;

import java.util.List;

public interface FnglStaffService {
    /**查询人员**/
    public Result findFnglStaff(FnglStaff fnglStaff, Page page);
    /**新增人员**/
    public Result insertFnglStaff(FnglStaff fnglStaff);
    /**修改人员**/
    public Result updateFnglStaff(FnglStaff fnglStaff);
    /**删除人员**/
    public Result deleteFnglStaff(String staffId);
    /**删除多个人员**/
    public Result deleteAllFnglStaff(String staffIds);
    /**根据当前登录用户获取销售人员**/
    public Result getStaff(User user);
    /**根据当前登录用户手机号获取到人员id**/
    public String getStaffId(String phone);
    /**获取到所有的项目经理**/
    public Result getManager();
    /**获取到所有二手房下的销售人员**/
    public Result getHouseStaff();
    public FnglStaff findBy(String property, Object value);
    public List<FnglStaff> findByCondition(Condition condition);
}
